<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>主页面</title>
    <!-- 请勿在项目正式环境中引用该 layui.css 地址 -->
    <link href="css/layui.css" rel="stylesheet">
</head>
<body>


<button type="button" class="layui-btn layui-bg-blue" id="delete">删除用户</button>

<!-- 请勿在项目正式环境中引用该 layui.js 地址 -->
<script src="js/layui.js"></script>

<script>
    layui.use(function(){
        var form = layui.form;
        var $ = layui.jquery;
        var layer = layui.layer;

        $("#delete").click(function () {
            $.ajax({
                url:'/shiro/user/delete',
                data:{id:10},
                type:'get',
                dataType:'json',
                success:function (res) {
                   layer.msg(res.msg)
                }
            })
        })

    });
</script>

</body>
</html>